﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WMS_DATABASE_MYSQL.MappingClass.SystemClass
{
    [SugarTable("wms_sysauthority")]

    public class wms_sysauthority
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public uint key { get; set; }
        [SugarColumn(ColumnDataType = "Nvarchar(64)")]
        public string loginname { get; set; } = "";
        [SugarColumn(ColumnDataType = "Nvarchar(64)")]
        public string realname { get; set; } = "";
        [SugarColumn(ColumnDataType = "Nvarchar(64)")]
        public string password { get; set; } = "";
        [SugarColumn(ColumnDataType = "tinyint(1) unsigned")]
        public int authoritykey { get; set; } = 1;
        [SugarColumn(ColumnDataType = "Nvarchar(255)")]
        public string avatarpath { get; set; } = "";
        [SugarColumn(ColumnDataType = "smallint(3) unsigned")]
        public int notifyCount { get; set; } = 0;//数量，最多255
        [SugarColumn(ColumnDataType = "smallint(3) unsigned")]
        public int unreadCount { get; set; } = 0;//数量，最多255
        [SugarColumn(ColumnDataType = "tinyint(1) unsigned")]
        public byte? dept { get; set; } 
        [SugarColumn(ColumnDataType = "tinyint(1) unsigned")]
        public byte? section { get; set; }
        [SugarColumn(ColumnDataType = "tinyint(1) unsigned")]
        public byte? group { get; set; }
        [SugarColumn(ColumnDataType = "Nvarchar(64)")]
        public string? mobilephone { get; set; }
        [SugarColumn(ColumnDataType = "Nvarchar(64)")]
        public string access { get; set; } = "user";
        [SugarColumn(ColumnDataType = "Nvarchar(64)")]
        public string email { get; set; } = "xxx@saicmotor.com";
        public byte pwdstrength { get; set; } = 2;
    }
}
